/*
 * @Author: 木子辰风 && 786083106@qq.com
 * @Date: 2025-04-14 16:09:04
 * @LastEditTime: 2025-04-16 23:19:25
 * @Description: 
 */
import { defineStore } from 'pinia'
import { createCommonGetters, createCommonActions } from "../helper"
import { useCartSummaryStore, getParamsRequiredKeys } from "@/store"
import $api from "@/api"
export const useAddInCartStore = defineStore('add-in-cart', {
    state: () => ({
        loading: false,
        params: {
            snapshotId: "",
            subject: "语文",
            grade: 10,
            questionId: ''
        },

    }),
    getters: {
        ...createCommonGetters
    },
    actions: {
        ...createCommonActions(),
 
    },
    persist: {
        enabled: true,
        storage: localStorage,
    }
})
